package com.company.cloud.pay.modules.third.utils;

import com.company.cloud.pay.modules.cache.model.PayApiConfig;
import com.company.cloud.pay.modules.wxpay.WxPayApiConfig;

public class WxPayApiConfigKit {

    public static WxPayApiConfig getWxPayApiConfig(PayApiConfig channelParam) {
        WxPayApiConfig wxPayApiConfig = new WxPayApiConfig();
        wxPayApiConfig.setConfigId(channelParam.getConfigId());
        wxPayApiConfig.setAppId(channelParam.getAppId());
        wxPayApiConfig.setMchId(channelParam.getMchId());
        wxPayApiConfig.setSlAppId(channelParam.getSlAppId());
        wxPayApiConfig.setSlMchId(channelParam.getSlMchId());
//		wxPayApiConfig.setPartnerKey(channelParam.geta);
        wxPayApiConfig.setApiKey(channelParam.getApiKey());
        wxPayApiConfig.setApiKey3(channelParam.getApiKey3());
        wxPayApiConfig.setDomain(channelParam.getDomain());
        wxPayApiConfig.setCertPath(channelParam.getCertPath());
        wxPayApiConfig.setKeyPemPath(channelParam.getKeyPemPath());
        wxPayApiConfig.setCertPemPath(channelParam.getCertPemPath());
        wxPayApiConfig.setExParams(channelParam.getExParams());
        return wxPayApiConfig;
    }


}
